<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        // const arr = [1,[2,[3,[4,[5]]]]]
        // const [a,[b,[c,[d,[e]]]]] = arr
        // console.log(e)


        // 不完全解构!
        // const [a=1,b] = []
        // console.log(a,b)

        // 剩余参数
        // const[,...a] = [1,2,3,4,5,6,7,8,9]
        // console.log(a)

        // 字符串结构
        // const [a,b,...c] = 'hello'
        // console.log(c)

        const name = '打飞机'
        const info = {
            name:'奥特曼',
            age:18,
            sex:'男',
            jiguan:{
                guoji:'中国',
                shengfen:'广西',
                shi:'贵港'
            }
        }
           
        // const{name} = info
        // console.log(name)

        // const{name: a} = info
        // console.log(a)

        const {age,...a} = info 
        console.log(a)
        

    </script>
</body>
</html>